﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../../skins/grey/css/novaui.css" rel="stylesheet" type="text/css" />
  <!--  <script src="../../lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script> -->
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.7.min.js" type="text/javascript"></script>
    <script src="../../js/plugins/novaGrid.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function ()
        {
         

            $("#maingrid2").novaGrid({
                columns: [{ display: '主键', name: 'ID', width: 200, type: 'int' }, { display: '名字', name: 'RealName' },  { display: '入职日期', name: 'IncomeDay', type: 'date'},{ display: '地址', name: 'Address' ,width:300,align:'left'}],
                url: "../../service/EmpDataHandler.ashx?Action=get&View=Employee", sortName: 'ID',
                showTitle: false, dataAction:'server',
                pageSize: 5,
                pageSizeOptions: [5, 10, 15]
            });
        });
    </script>
</head>
<body>
<h3>使用服务器数据，启用JS排序分页</h3>
    <div id="maingrid2"></div>
    <br />

      <div style="display:none;">
      <!-- 流量统计代码 -->
</div>
</body>
</html>
